package com.my.study.jdbc.entity;

import org.springframework.jdbc.datasource.DataSourceTransactionManager;
import org.springframework.transaction.TransactionStatus;
import org.springframework.transaction.support.DefaultTransactionDefinition;

/**
 * @author Carlos
 * @version 1.0
 * @Description TODO
 * @date 2021/11/7 13:14
 **/
public class TransactionParam {
    /**
     * 事务管理器
     */
    private DataSourceTransactionManager tm;
    /**
     * 默认事务对象
     */
    private DefaultTransactionDefinition def;
    /**
     * 事务状态
     */
    private TransactionStatus status;

    public TransactionParam() {
    }

    public DataSourceTransactionManager getTm() {
        return tm;
    }

    public void setTm(DataSourceTransactionManager tm) {
        this.tm = tm;
    }

    public DefaultTransactionDefinition getDef() {
        return def;
    }

    public void setDef(DefaultTransactionDefinition def) {
        this.def = def;
    }

    public TransactionStatus getStatus() {
        return status;
    }

    public void setStatus(TransactionStatus status) {
        this.status = status;
    }
}
